<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Edit</title>
    </h:head>
    <h:body>
        <ui:composition template="../templates/employee_master.xhtml">

            <ui:define name="content">

                <p:panel id="panel" header="Post Details">
                    <p:messages id="messages" />
                    <h:panelGrid columns="3">
                        <h:outputText value="Name: "/>
                        <h:outputText value="#{postsController.selected.name}"/>
                        <br/>
                        <h:outputText value="Summary: "/>
                        <h:outputText value="#{postsController.selected.summary}"/>
                        <br/>
                        <h:outputText value="Content: "/>
                        <h:outputText value="#{postsController.selected.content}"/>
                        <br/>
                        <h:outputText value="Post's Categories: "/>
                        <h:outputText value="#{postsController.selected.categoryPostID.name}"/>
                        <br/>
                        <h:outputText value="Account: "/>
                        <h:outputText value="#{postsController.selected.accountID.username}"/>
                        <br/>
                        <h:outputText value="Status: "/>
                        <h:outputText value="#{postsController.selected.status}"/>
                        <br/>
                        <h:outputText value="Images: "/>
                        <h:graphicImage width="350" height="200" url="#{postsController.selected.img}" />
                    </h:panelGrid>
                </p:panel>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

